package com.kasax.hinetwork;

/**
 * 策略配置
 */
public class StrategyConfig {
    /**
     * 核心库类型
     */
    public enum CoreType {
        HTTP_URL_CONNECTION, HTTP_CLIENT, OKHTTP, RETROFIT
    }

    private CoreType coreType;
    // 读取超时时长:ms
    private long readTimeOut;
    // 连接超时时长:ms
    private long connectTimeOut;
    // 写数据超时时长:ms
    private long writeTimeOut;

    public StrategyConfig() {
    }

    public CoreType getCoreType() {
        return coreType;
    }

    public void setCoreType(CoreType coreType) {
        this.coreType = coreType;
    }

    public long getReadTimeOut() {
        return readTimeOut;
    }

    public void setReadTimeOut(long readTimeOut) {
        this.readTimeOut = readTimeOut;
    }

    public long getConnectTimeOut() {
        return connectTimeOut;
    }

    public void setConnectTimeOut(long connectTimeOut) {
        this.connectTimeOut = connectTimeOut;
    }

    public long getWriteTimeOut() {
        return writeTimeOut;
    }

    public void setWriteTimeOut(long writeTimeOut) {
        this.writeTimeOut = writeTimeOut;
    }

    @Override
    public String toString() {
        return "StrategyConfig{" +
                "coreType=" + coreType +
                ", readTimeOut=" + readTimeOut +
                ", connectTimeOut=" + connectTimeOut +
                ", writeTimeOut=" + writeTimeOut +
                '}';
    }
}
